import request from '@/utils/request'

export function list(data) {
  return request({
    url: '/purchase/inspect/list',
    method: 'post',
    data: data
  })
}
export function getInfo(data) {
  return request({
    url: '/purchase/inspect/' + data,
    method: 'get'
  })
}
export function remove(data) {
  return request({
    url: '/purchase/inspect/delete',
    method: 'post',
    data: { deleteIds: data }
  })
}
export function addOrUpdate(data) {
  return request({
    url: '/purchase/inspect/addOrEdit',
    method: 'post',
    data: data
  })
}
export function orderGetInfo(data) {
  return request({
    url: '/purchase/order/' + data,
    method: 'get'
  })
}
export function getInfoForInspect(data) {
  return request({
    url: '/purchase/order/getInfoForInspect/' + data,
    method: 'get'
  })
}

export function orderList(data) {
  return request({
    url: '/purchase/order/listAllOrderDetail',
    method: 'post',
    data: data
  })
}
export function orderGetInfoTwo(data) {
  return request({
    url: '/purchase/order/getInfoForReturn/' + data,
    method: 'get'
  })
}
